<?php
/*
 * Created on 25.01.2006
 *
 */
 
 
class phpinchains_RuntimeConfig
{

    var $data;

    /**
     *
     * @staticvar phpinchains_RuntimeConfig $obj Singleton object
     * @return phpinchains_RuntimeConfig
     */
    static function getInstance()
    {
        static $obj = null;
        if ($obj == null)
        {
            $obj = new phpinchains_RuntimeConfig();
        }
        return $obj;
    }
    
    function set ($name, $value)
    {
        $this->data[$name] = $value;
    }
    
    function get ($name)
    {
    	if (!isset($this->data[$name]))
    	   return null;
        return $this->data[$name];
    }
    
    function setRef ($name, &$value)
    {
        $this->data[$name] = & $value;
    }
    
    function & getRef ($name)
    {
        return $this->data[$name];
    }

}

?>
